package day15;

public class test {
    public static void main(String[] args) throws InterruptedException {
        //新生状态
        Thread thread=new Thread(new learn4());
        thread.setPriority(8);
        thread.start();
        //执行子类
        for( int i=0;i<50;i++){
            System.out.println("普通号"+(i+1)+"号病人在看病");
            try{
                Thread.sleep(500);
            }catch (InterruptedException e){
                e.printStackTrace();
            }
            if(i==9){
                try{
                thread.join();
            }catch (InterruptedException e){
                    e.printStackTrace();
                }
        }
    }
    }
}


